fix: correct fullMethod for OperatePrivilegeV2 REST endpoints#48537
fix: correct fullMethod for OperatePrivilegeV2 REST endpoints#48537sunby wants to merge 1 commit intomilvus-io:masterfrom
Conversation
The REST handlers for /roles/grant_privilege_v2 and /roles/revoke_privilege_v2 incorrectly pass the V1 fullMethod string "OperatePrivilege" instead of "OperatePrivilegeV2". This causes Hook interceptors to reject the request as a denied API. issue: milvus-io#48115 Signed-off-by: sunby <sunbingyi1992@gmail.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sunby The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
[ci-v2-notice] To rerun ci-v2 checks, comment with:
If you have any questions or requests, please contact @zhikunyao. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #48537 +/- ##
===========================================
+ Coverage 74.95% 77.81% +2.85%
===========================================
Files 1485 2100 +615
Lines 247232 349379 +102147
===========================================
+ Hits 185323 271863 +86540
- Misses 53589 69229 +15640
+ Partials 8320 8287 -33
🚀 New features to boost your workflow:
|
|
/ci-rerun-integration-test |
|
/ci-rerun-e2e-default |
|
/ci-rerun-integration-test |
|
/ci-rerun-go-sdk |
5 similar comments
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-gosdk |
|
/ci-rerun-go-sdk |
9 similar comments
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
8 similar comments
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
Summary
/roles/grant_privilege_v2and/roles/revoke_privilege_v2pass V1 fullMethodOperatePrivilegeinstead ofOperatePrivilegeV2towrapperProxy, causing Hook interceptors to reject the request as a denied APIrouteToMethodmetrics map entries for the same endpointsissue: #48115